package basic;

import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.List;

public class ArrayTest {
	
	private int b;
	
	public ArrayTest(int b){
		this.b = b;
	}
	
	public static void main(String[] args) throws InstantiationException, IllegalAccessException {
		int[] b = new int[10];
		for (int i = 0; i < b.length; i++) {
			System.out.println(b[i]);
		}
		
		boolean[] b2 = new boolean[0];
		for (int i = 0; i < b2.length; i++) {
			System.out.println(b2[i]);
		}
		System.out.println(Arrays.toString( b2));

		char[] c = new char[10];
		c[0] = (char)0;
		for (int i = 0; i < c.length; i++) {
			System.out.println(c[i]);
		}
		System.out.println(Arrays.toString( b2));
		
		List<Integer> tt = new ArrayList<Integer>();
		String t2t = "";
		System.out.printf("%% %3d", 2);
		
		Arrays.<Integer>asList(1,2);
		
		System.out.println("---------------");
		System.out.println(Collection.class.isAssignableFrom(List.class));
		
		ArrayTest.class.newInstance();
	}
}
